/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.appspot.ittrick.drive.trick.db;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author takahara
 */
public class AccountMstMapping implements ResultSetBeanMapping {

    @Override
    public AccountMstEntity createFromResultSet(ResultSet rs) throws SQLException {
        AccountMstEntity entity = new AccountMstEntity();
        entity.mailAddress = rs.getString("mail_address");
        entity.name = rs.getString("name");
        entity.userId = rs.getString("user_id");
        entity.pictureUrl = rs.getString("picture_url");
        entity.accessToken = rs.getString("access_token");
        entity.refreshToken = rs.getString("refresh_token");
        
        return entity;
    }
    
}
